/* 主路由模块的实现 */
const router = require('koa-router')();
const path = require('path');
const ff = require('../module/fsfile/fstool')

router.get('/',async (ctx, next) => {
    await next();
});

router.get('/banner', async (ctx, next) => {

    const res = await ff.read('public/api/banner.json');

    ctx.body = res;
});

router.get('/shops', async (ctx, next) => {

    const res = await ff.read('public/api/shops.json');

    ctx.body = res;
});


module.exports = router.routes();